﻿/*
 * SVN-based CodeReview
 * Copyright (c) Karim Agha <karim.dev@gmail.com>.
 */

namespace Sentio.CodeReview.Foundation
{
    using System.Linq;
    using System.Collections.Generic;

    /// <summary>
    /// A container for all the targets inside a single solution.
    /// </summary>
    public class SolutionOverview
    {
        protected readonly List<Target> _solutionTargets;

        /// <summary>
        /// A collection of targets that require attention, i.e contain negative and active comments.
        /// </summary>
        public IEnumerable<Target> RelevantTargets
        {
            get
            {
                return _solutionTargets.Where(s => s.RelevantComments.Count() > 0);
            }
        }
    }
}
